#!/bin/sh
# author: lanren_007
# email:lanren_007@163.com

echo '配置bash'
echo '覆盖用户配置文件...'

# 检查配置文件是否存在


# 将配置内容写入到文件中

echo '
# .bashrc

# User specific aliases and functions

alias cls="clear"
alias ls="ls -Xp --color=always --group-directories-first"
alias l="ls -lh"
alias ll="ls -alh"
alias rm="rm -i"
alias cp="cp -i"
alias mv="mv -i"
alias df="df -hT"

# Source global definitions

if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi


# 设置命令提示符

PS1="\
\e[36m\
[\u]@[\h][\w]\e[31m\
\\$\
\r\n\
\e[0m\
"
export PS1

# 设置我的工作目录环境变量
mycon=~/lanren/configs/lde
mypro=~/lanren/exprojects


' > ~/.bashrc 

sleep 1
source ~/.bashrc

